package com.jron.cqiu.kernel.process;

import com.jron.cqiu.util.Instance;

/**
 * Created by Intellij IDEA.
 *
 * @Author: Yejw
 * @Date: 2008-6-12
 * @Time: 21:23:22
 */
public interface IProcess {

    /**
     * 获取IProcess 代理实现
     */
    public IProcess INSTANCE = Instance.PROCESS_PROXY_INSTANCE;

    /**
     * 结束进程
     *
     * @param moduleBaseName
     * @param ignoreCase     映像名称是否忽略大小写
     * @return
     */
    public int kill(String moduleBaseName, boolean ignoreCase);

    /**
     * 结束进程 默认忽略映像名称大小写
     *
     * @param moduleBaseName
     * @return
     */
    public int kill(String moduleBaseName);

    /**
     * 根据PID结束进程
     *
     * @param moduleBaseName
     * @return
     */
    public int kill(int pid);

}
